package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Activitytype implements Serializable {
    private String atno;

    private String atname;

    private String atimg;

    private Integer atstate;

    private String atdescribe;

    private static final long serialVersionUID = 1L;

    public String getAtno() {
        return atno;
    }

    public void setAtno(String atno) {
        this.atno = atno;
    }

    public String getAtname() {
        return atname;
    }

    public void setAtname(String atname) {
        this.atname = atname;
    }

    public String getAtimg() {
        return atimg;
    }

    public void setAtimg(String atimg) {
        this.atimg = atimg;
    }

    public Integer getAtstate() {
        return atstate;
    }

    public void setAtstate(Integer atstate) {
        this.atstate = atstate;
    }

    public String getAtdescribe() {
        return atdescribe;
    }

    public void setAtdescribe(String atdescribe) {
        this.atdescribe = atdescribe;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activitytype other = (Activitytype) that;
        return (this.getAtno() == null ? other.getAtno() == null : this.getAtno().equals(other.getAtno()))
            && (this.getAtname() == null ? other.getAtname() == null : this.getAtname().equals(other.getAtname()))
            && (this.getAtimg() == null ? other.getAtimg() == null : this.getAtimg().equals(other.getAtimg()))
            && (this.getAtstate() == null ? other.getAtstate() == null : this.getAtstate().equals(other.getAtstate()))
            && (this.getAtdescribe() == null ? other.getAtdescribe() == null : this.getAtdescribe().equals(other.getAtdescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAtno() == null) ? 0 : getAtno().hashCode());
        result = prime * result + ((getAtname() == null) ? 0 : getAtname().hashCode());
        result = prime * result + ((getAtimg() == null) ? 0 : getAtimg().hashCode());
        result = prime * result + ((getAtstate() == null) ? 0 : getAtstate().hashCode());
        result = prime * result + ((getAtdescribe() == null) ? 0 : getAtdescribe().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", atno=").append(atno);
        sb.append(", atname=").append(atname);
        sb.append(", atimg=").append(atimg);
        sb.append(", atstate=").append(atstate);
        sb.append(", atdescribe=").append(atdescribe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}